<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            height: 300px;
            background-color: pink;
            border: 20px solid red;
            /* border-image-source: url(./images/border.jpg);
            border-image-slice: 165 165 165 165;
            border-image-width: 20px; */
            /* repeat 平铺 round 环绕 完整  stretch拉伸*/
            /* border-image-repeat: round; */
            border-image: url(./images/border.jpg) 165/20px round;
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>